package com.anjubao.parking.municipal.parkinglot.model;

import com.anjubao.parking.municipal.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * 设备状态表
 *
 * @author zhuchunfeng
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("parking_lot_device_status")
@ApiModel(value="ParkingLotDeviceStatus",description = "设备状态表")
public class ParkingLotDeviceStatus extends BaseEntity<ParkingLotDeviceStatus>{

    @TableField(value="id")
    @ApiModelProperty(name="id",value = "id")
    private Long id;

    @TableField(value="code")
    @ApiModelProperty(name="code",value = "编号")
    private String code;

    @TableField(value="device_id")
    @ApiModelProperty(name="deviceId",value = "设备id")
    private Long deviceId;

    @TableField(value="device_code")
    @ApiModelProperty(name="deviceCode",value = "设备code")
    private String deviceCode;

    @TableField(value="device_name")
    @ApiModelProperty(name="deviceName",value = "设备名称")
    private String deviceName;

    @TableField(value="device_type")
    @ApiModelProperty(name="deviceType",value = "类型 1:充电桩,2:视频桩,3:地磁,4:pda,5:诱导屏")
    private Integer deviceType;

    @TableField(value="is_online")
    @ApiModelProperty(name="isOnline",value = "运行状态 0:断线 1:在线")
    private Integer isOnline;

    @TableField(value="status")
    @ApiModelProperty(name="status",value = "状态 -1：故障，0：禁用，1：正常")
    private Integer status;

    @TableField(value="remaining_battery")
    @ApiModelProperty(name="remainingBattery",value = "剩余电量")
    private Integer remainingBattery;

    @TableField(value="province_id")
    @ApiModelProperty(name="provinceId",value = "所在省份ID")
    private Integer provinceId;

    @TableField(value="province_name")
    @ApiModelProperty(name="provinceName",value = "所在省份名称")
    private String provinceName;

    @TableField(value="city_id")
    @ApiModelProperty(name="cityId",value = "所在城市ID")
    private Integer cityId;

    @TableField(value="city_name")
    @ApiModelProperty(name="cityName",value = "所在城市名称")
    private String cityName;

    @TableField(value="district_id")
    @ApiModelProperty(name="districtId",value = "所在行政区ID")
    private Integer districtId;

    @TableField(value="district_name")
    @ApiModelProperty(name="districtName",value = "所在行政区名称")
    private String districtName;

    @TableField(value="location")
    @ApiModelProperty(name="location",value = "地址")
    private String location;

    @TableField(value="note")
    @ApiModelProperty(name="note",value = "备注")
    private String note;

    @TableField(value="fix_by")
    @ApiModelProperty(name="fixBy",value = "修复人")
    private String fixBy;

    @TableField(value="fix_time")
    @ApiModelProperty(name="fixTime",value = "修复时间")
    private LocalDateTime fixTime;

    @TableField(value="fix_note")
    @ApiModelProperty(name="fixNote",value = "修复备注")
    private String fixNote;

    @TableField(value="last_report_time")
    @ApiModelProperty(name="lastReportTime",value = "最后报到时间")
    private LocalDateTime lastReportTime;


}